package org.travel.app.mapper;
import org.apache.ibatis.annotations.Param;
import org.travel.app.entity.BaseReservation;
import org.travel.app.entity.Order;
import org.travel.app.entity.spots.SpotsReservation;

/**
 * @author nmm
 * @date 2024-12-2024/12/10
 * @deriction njm......
 */
public interface ReservationMapper {
  /**
   * 保存预约信息
   * @param reservation
   */
  void saveReservation(BaseReservation reservation);

  /***
   * 通过订单编号查询订单,景点及其相关信息
   * @return
   */
  Order getSpotsReservationByOrderId(@Param("orderId") String  orderId);

  /**
   * 添加景点预约信息
   * @param reservation 景点预约信息
   */
  void addSpotsReservation(SpotsReservation reservation);

}
